<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.auth.faceCompare.title,
  description: seoConfig.auth.faceCompare.description,
  keywords: seoConfig.auth.faceCompare.keywords
})

const advantages = [
  { icon: 'lucide:scan-face', title: 'AI人脸识别', description: '先进的AI算法，准确识别人脸特征' },
  { icon: 'lucide:shield-check', title: '活体检测', description: '防止照片、视频等攻击手段，确保真人验证' },
  { icon: 'lucide:zap', title: '快速验证', description: '毫秒级完成人脸对比，用户体验流畅' },
  { icon: 'lucide:target', title: '高准确率', description: '人脸对比准确率99%以上' },
  { icon: 'lucide:lock', title: '隐私保护', description: '加密存储人脸数据，严格保护用户隐私' },
  { icon: 'lucide:check-circle', title: '人证合一', description: '确保身份证与实际使用人一致' }
]

const scenarios = [
  { icon: 'lucide:landmark', title: '金融开户', description: '远程开户、实名认证、风险防控', color: 'from-blue-500 to-cyan-500' },
  { icon: 'lucide:smartphone', title: '实名登记', description: '手机卡实名、业务办理、账户激活', color: 'from-purple-500 to-pink-500' },
  { icon: 'lucide:ticket', title: '票务核验', description: '机场安检、车站进站、景区入园', color: 'from-green-500 to-emerald-500' },
  { icon: 'lucide:hotel', title: '酒店入住', description: '身份核验、快速入住、安全管理', color: 'from-orange-500 to-red-500' },
  { icon: 'lucide:graduation-cap', title: '考试报名', description: '身份验证、防止替考、资格审核', color: 'from-indigo-500 to-blue-500' },
  { icon: 'lucide:key', title: '门禁系统', description: '人脸门禁、考勤打卡、访客管理', color: 'from-yellow-500 to-orange-500' }
]
</script>

<template>
  <div class="min-h-screen">
    <ProductHero
      title="身份证人相对比"
      description="通过人脸识别技术，对比用户照片与身份证照片，实现活体检测和身份核验，确保人证合一，防止身份冒用"
    />
    <section class="py-10 md:py-15 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">产品优势</h2>
          <p class="text-lg text-gray-600">AI技术，精准识别</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(advantage, index) in advantages" :key="index" class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group">
            <div class="w-14 h-14 bg-gradient-to-br from-orange-500 to-red-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">{{ advantage.title }}</h3>
            <p class="text-gray-600 leading-relaxed">{{ advantage.description }}</p>
          </div>
        </div>
      </div>
    </section>
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">行业应用场景</h2>
          <p class="text-lg text-gray-600">确保人证合一，保障业务安全</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(scenario, index) in scenarios" :key="index" class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden">
            <div class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity" :class="scenario.color" />
            <div class="relative">
              <div class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br" :class="scenario.color">
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">{{ scenario.title }}</h3>
              <p class="text-gray-600 leading-relaxed">{{ scenario.description }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>
